package oop4.animal;

public class Squirrel extends Pet {
    Squirrel(String name, String strain, int weight, int age, char sex, int love, int health) {
        super(name, strain, weight, age, sex, love, health);
    }

    public void bite() {
        System.out.println("松鼠" + super.getName() + "啃桌腿");
    }

    @Override
    public void eat() {
        System.out.println("松鼠" + this.getName() + "吃坚果");
    }

    @Override
    public String toString() {
        return "松鼠" + getName();
    }
}

